KissAi\KissAi_Base_Widget C

Total Complexity 120
Dependencies 4
Dependents 3
Total lines 861
Lines of code 611
Logical lines of code 254
Comment lines 118
Methods 41
Properties 0

Methods 41

Method Rating Maintainability Complexity Lines of code
get_visual_editor_name()
B
50 19 24
format_markdown_table()
A
48 9 34
render_thread_messages()
A
42 7 55
parse_table_buffer()
S
50 7 28
kissai_save_api_log_ajax()
S
51 7 27
update_instance_setting()
S
57 6 18
get_allowed_html()
S
38 1 91
format_size_units()
S
57 6 16
update_instance_settings()
S
62 6 11
execute_method_from_string()
S
56 5 18
reset_kissai_vars_nonce()
S
54 4 21
get_allowed_svg_html()
S
47 1 45
get_reset_kissai_vars_nonce_script()
S
54 2 23
get_assistant_id_from_widget_atts()
S
68 3 7
render_hidden_field_with_attributes()
S
61 2 12
render_kissai_login_form()
S
61 1 18
render_kissai_register_form()
S
69 1 16
get_chatgpt_api_with_widget_atts()
S
65 2 9
render_no_permission_message()
S
64 2 9
get_api_server_from_endpoint()
S
72 2 5
widget_atts_from_ajax()
S
64 2 9
format_bold_text()
S
69 2 6
is_in_editing_mode()
S
73 2 5
widget()
S
64 2 9
update()
S
71 2 5
encode_attributes()
S
67 2 8
get_allowed_form_html()
S
63 1 12
_convert_to_pascal_case()
S
77 1 3
render_loading_animation()
S
69 1 7
render_divider()
S
68 1 10
convert_unix_timestamp_to_wordpress_timezone()
S
65 1 9
_convert_to_title_case()
S
77 1 3
get_current_timestamp_for_prompt()
S
73 1 4
split_table_row()
S
68 1 7
__construct()
S
78 1 3
format_h_text()
S
75 1 4
format_reference_text()
S
71 1 5
format_h4_text()
S
78 1 3
format_h3_text()
S
78 1 3
get_kissai_widget_path()
S
75 1 4
convertUnixToUTC()
S
71 1 5